package com.kanche.bigbaby.support.pb_color;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

public class MainActivity extends Activity {

	private IndiactorView indictorView;
	private int i = 0;
	private Handler handler = new Handler() {

		public void handleMessage(Message msg) {

			indictorView.setPosition(i++);
			if (i <= 100) {

				this.sendEmptyMessageDelayed(0x01, 500);
			}
		};
	};

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
//		setContentView(R.layout.activity_main);
//
//		indictorView = (IndiactorView) findViewById(R.id.indictor_view);
//
//		 indictorView.setPosition(i);

		handler.sendEmptyMessageDelayed(0x01, 500);
	}

}
